from rest_framework import viewsets
from .models import MedicationSchedule, MedicationRecord, Reminder
from .serializers import MedicationScheduleSerializer, MedicationRecordSerializer, ReminderSerializer

class MedicationScheduleViewSet(viewsets.ModelViewSet):
    queryset = MedicationSchedule.objects.all()
    serializer_class = MedicationScheduleSerializer

class MedicationRecordViewSet(viewsets.ModelViewSet):
    queryset = MedicationRecord.objects.all()
    serializer_class = MedicationRecordSerializer

class ReminderViewSet(viewsets.ModelViewSet):
    queryset = Reminder.objects.all()
    serializer_class = ReminderSerializer